#!/usr/bin/python3

singer = []
song = []

while True:
    print("1.增加歌手")
    print("2.显示歌手名单")
    print("3.删除歌手")
    print("4.显示歌库")
    print("5.删除歌曲")
    print("6.增加歌曲")
    print("7.统计有歌手和歌曲")
    print("8.查询歌手是否在名单中")
    print("9.查询歌曲是否在歌单中")
    print("0.退出菜单")
    num = input("请输入你要使用的功能：")
    if num == "1":
        name1 = input("please input add you love geshou name:")
        if name1 in singer:
            print(" %s is exits" % name1)
        else:
            singer.append(name1)
        print(singer)
    if num == "2":
        print(singer)

    if num == "3":
        print("1.按编号删除 2.按名字删除")
        num2 = input("请输入你要使用的功能：")
        if num2 == "1":
            print(singer)
            [print(singer.index(i),end=': ') or print(i) for i in singer]
            a = input("请输入你要删除的编号:")
            singer.pop(int(a))
            print(singer)
        if num2 == "2":
            print(singer)
            name2 = input("please input del you  geshou name:")
            singer.remove(name2)
            print(singer)
    if num == "4":
        print(song)
    if num == "5":
        name3 = input("please input del you  gequ name:")
        song.remove(name3)
        print(song)
    if num == "6":
        name4 = input("please input add you  gequ name:")
        if name4 in song:
            print("%s is exits" % name4)
        else:
            song.append(name4)
        print(song)
    if num == "7":
        print(len(singer))
        print(len(song))
    if num == "8":
        name5 = input("please input  you  geshou name:")
        if name5 in singer:
            print("%s is exits" % name5)
            print(singer)
        else:
            print("%s is not exits" % name5)
    if num == "9":
        name6 = input("please input  you  gequ name:")
        if name6 in song:
            print("%s is exits" % name6)
            print(song)
        else:
            print("%s is not exits" % name6)
    if num == "0":
        exit()
    else:
        print("请输入你要使用的功能：")